<template>
    <el-row>
      <el-col :span="14" class="sea-card">
        <div class="sea-card">
          <span class="text-smaller">短信通道</span>
          <el-input placeholder="短信通道" v-model="channel"></el-input>
          <message-modify :guid="msg_id"></message-modify>
        </div>
        <div>
          <span style="margin-left: 6px" class="text-smaller">目标用户</span>
          <el-row class="sea-card">
            <el-col>
              <div style="margin-bottom: 8px">
                <div style="max-width: 260px" class="pull-left">
                  <el-input placeholder="客户名称" size="small" clearable>
                    <el-button slot="append" title="搜索" icon="fa fa-search"></el-button>
                  </el-input>
                </div>
                <div class="sea-button-group pull-right">
                  <el-button slot="append" title="Excel导入" icon="fa fa-upload"></el-button>
                  <el-button slot="append" title="从系统内部用户选择" icon="fa fa-check-square-o"></el-button>
                  <el-button slot="append" title="直接输入客户信息" icon="fa fa-plus"></el-button>
                </div>
                <div class="clearfix"></div>
              </div>
            </el-col>

            <el-col :span="6" class="sms-user">
              <span class="text-box inline-block">陈先生 13512345678</span>
              <i class="fa fa-remove text-danger"></i>
            </el-col>
            <el-col :span="6" class="sms-user">
              <span class="text-box inline-block">陈先生 13512345678</span>
              <i class="fa fa-remove text-danger"></i>
            </el-col>
            <el-col :span="6" class="sms-user">
              <span class="text-box inline-block">陈先生 13512345678</span>
              <i class="fa fa-remove text-danger"></i>
            </el-col>
            <el-col :span="6" class="sms-user">
              <span class="text-box inline-block">陈先生 13512345678</span>
              <i class="fa fa-remove text-danger"></i>
            </el-col>
            <el-col :span="6" class="sms-user">
              <span class="text-box inline-block">陈先生 13512345678</span>
              <i class="fa fa-remove text-danger"></i>
            </el-col>
            <el-col :span="6" class="sms-user">
              <span class="text-box inline-block">陈先生 13512345678</span>
              <i class="fa fa-remove text-danger"></i>
            </el-col>
          </el-row>
        </div>
      </el-col>
      <el-col :span="10" class="sea-card">
        <message-props-detail :guid="msg_id"></message-props-detail>
      </el-col>
    </el-row>
</template>

<script>
import UserMultipleSelect from "../../../auth/user/multiple-select";
import MessageModify from "../message/modify";
import MessagePropsDetail from "../message/props/detail";

export default {
    name: "NoticePanel",
    components: {UserMultipleSelect, MessageModify, MessagePropsDetail},
    data() {
        return {
            example: '尊敬的${username}，您的验证码为：${code}，如果你未办理相关业务，请忽略当前短信。'
            // 行级数据
            , row_data: undefined
            // 消息ID
            , msg_id: undefined

            , channel: ''
        }
    },
    methods: {
        /**
         * 新增/编辑操作成功，关闭当前窗口
         *
         * @param ret 后台响应数据
         */
        callback: function (ret) {
            // 刷新表单列表
            this.onSucceed(ret);
            // 关闭弹窗
            this.$refs.dialog.close();
        }
    }
}
</script>

<style scoped>
.sms-user {
}
.sms-user > i{
    cursor: pointer;
    display: none;
}
.sms-user:hover > i{
    display: inline-block;
}
</style>
